<?php
get_header(); ?>
	<div class="main-container">
      <div class="container">
      <!-- Three columns of text below the carousel -->
        <div class="row">        	
          <div class="col-md-8">
            <div id="gallery-main-slider" class="carousel slide" data-ride="carousel">
              <div class="carousel-inner">
                <?php //$first_silder_image = get_post(173);?>
                <!-- <div class="item active">
                  <a class="thumbnail">
                    <?php the_post_thumbnail();?>
                  </a>
                </div> -->
                <?php 
                    if( class_exists('Dynamic_Featured_Image') ) {
                        global $dynamic_featured_image;                                
                        $featured_images = $dynamic_featured_image->get_featured_images( 173 );
                    }
                ?>
                <?php foreach ($featured_images as $key => $value):?>
                    <div class="item <?php if ($key == 0) echo 'active';?>">
                      <a class="thumbnail">
                        <img src="<?php echo $value['full'];?>">
                      </a>
                    </div>
                <?php endforeach;?>                
              </div>
              <h4 class="pull-left">Gallery Image</h4>        
              <!-- Controls -->
              <div class="next-back pull-right">
                <a href="#gallery-main-slider" data-slide="prev">
                  <span class="prev-travel-desk"></span>
                </a>
                <a href="#gallery-main-slider" data-slide="next">
                  <span class="next-travel-desk"></span>
                </a>
                &nbsp;&nbsp;&nbsp;
              </div>
            </div>
            <div class="list-gallery">
              <div class="row">
                <?php if (have_posts()): ?>
                <?php while (have_posts()) : the_post();?>
                <div class="col-md-4">
                  <div class="list-galley-ele">
                    <a href="<?php the_permalink();?>" class="thumbnail">
                      <?php if (has_post_thumbnail()) {
                          the_post_thumbnail('medium');
                      }?>
                    </a>
                    <a href="<?php the_permalink();?>" class="travel-desk-title"><?php the_title(); ?></a>
                  </div>
                </div>
                <?php endwhile; endif; ?>                  
              </div>
            </div>
        </div>        
        <div class="col-md-4">
        	<?php get_sidebar(); ?>
    	</div>
    </div>
</div>
<?php get_footer(); ?>